#include <thread>
#include "util.hpp"
#include "config.hpp"
#include "data.hpp"
#include "hot.hpp"
#include "service.hpp"

cloud::DataManager *data;

int main()
{
    data = new cloud::DataManager;
    std::thread hot_manager_th([&]()
    {
        cloud::HotManager hot;
        hot.runModule();
    });

    std::thread server_manager_th([&]()
    {
        cloud::Service ser;
        ser.runModule();
    });

    hot_manager_th.join();
    server_manager_th.join();
    delete data;
    return 0;
}